#include"string.h"
int main()
{
	/*ly::string s1('a');
	cout << s1 << endl;
	ly::string s2("asadadddf");
	ly::string s3(s2);
	cout << s2 << endl;
	cout << s2.size() << endl;
	cout << s3 << endl;
	for (int i = 0; i < s3.size(); ++i)
	{
		s3[i]++;
	}
	cout << s3 << endl;
	s3.push_back('q');
	cout << s3 << endl;
	ly::string s4;
	s1 = s4 = s3;
	cout << s1 << endl << s4 << endl;
	s4.push_back("abc");
	cout << s4 << endl;
	s4 += "0";
	for (const auto& e : s4)
	{
		cout << e << ' ';
	}
	cout << endl;
	size_t i = s4.find('a');
	cout << i << endl;*/
	ly::string s1("abcxxxaxcvba");
	s1.reserve(20);
	cout << s1.size() << ' ' << s1.capacity() <<' '<< s1 << endl;
	ly::string s2("1",0);
	cout << s2.empty() << endl;
	s2.insert(1, s1);
	cout << s2.size() << ' ' << s2.capacity() << ' ' << s2 << endl;
	cout << s2 << endl;
	s2.erase(2,13);
	cout << s2 << endl;
	s2.push_back("sssn");
	s2.push_back('a');
	cout << s2.size() << ' ' << s2.capacity() << ' ' << s2 << endl;
	ly::string s3("a");
	ly::string s4("");
	cout << (s3 > s4) << endl;
	cout << (s3 >= s4) << endl;
	cout << (s3 = s4) << endl;
	cout << (s3 < s4) << endl;
	cout << (s3 <= s4) << endl;
	std::string s5("qaz");
	s5.clear();
	cout << s5.capacity() << endl;
	s3.clear();
	cout << s3.capacity() << endl;
	return 0;
}
